package com.mirana.module.common.model.dictpm;

import com.mirana.frame.base.model.BaseModel;
import com.mirana.frame.db.base.anno.ColumnPlus;
import com.mirana.frame.db.base.anno.FKPlus;
import com.mirana.frame.db.base.anno.Notes;
import com.mirana.frame.db.base.anno.TablePlus;
import lombok.Data;

@Data
@Notes("项目_合同方案_中间表")
@TablePlus(name = "dict_project_doc")
public class DictProjectDoc extends BaseModel {

    @Notes("冗余字段：方案类别，默认1。1合同方案")
    @ColumnPlus(nullable = false, default_val = "1", length = "2")
    private int type;

    @Notes("项目id，外键")
    @ColumnPlus(nullable = false)
    @FKPlus(tableClass = DictProject.class)
    private Long project_id;

    @Notes("方案id")
    @ColumnPlus(nullable = false)
    @FKPlus(tableClass = DictPlanDoc.class)
    private Long plandoc_id;

}
